package com.example.pojo.entitly;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 挂号记录表
 * @TableName registration
 */
public class Registration implements Serializable {
    /**
     * 编号
     */
    private Long id;

    /**
     * 病人编号
     */
    private Integer patientId;

    /**
     * 科室编号
     */
    private Integer departmentId;

    /**
     * 医生编号
     */
    private Integer doctorId;

    /**
     * 号别
     */
    private String numberCategory;

    /**
     * 挂号日期
     */
    private Date registerDate;

    /**
     * 挂哪个时间段
     */
    private String registerSoltTime;

    /**
     * 挂号费用
     */
    private BigDecimal registerPrice;

    /**
     * 数据创建时间
     */
    private Date gmtCreate;

    /**
     * 数据最后修改时间
     */
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    public Long getId() {
        return id;
    }

    /**
     * 编号
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 病人编号
     */
    public Integer getPatientId() {
        return patientId;
    }

    /**
     * 病人编号
     */
    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    /**
     * 科室编号
     */
    public Integer getDepartmentId() {
        return departmentId;
    }

    /**
     * 科室编号
     */
    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }

    /**
     * 医生编号
     */
    public Integer getDoctorId() {
        return doctorId;
    }

    /**
     * 医生编号
     */
    public void setDoctorId(Integer doctorId) {
        this.doctorId = doctorId;
    }

    /**
     * 号别
     */
    public String getNumberCategory() {
        return numberCategory;
    }

    /**
     * 号别
     */
    public void setNumberCategory(String numberCategory) {
        this.numberCategory = numberCategory;
    }

    /**
     * 挂号日期
     */
    public Date getRegisterDate() {
        return registerDate;
    }

    /**
     * 挂号日期
     */
    public void setRegisterDate(Date registerDate) {
        this.registerDate = registerDate;
    }

    /**
     * 挂哪个时间段
     */
    public String getRegisterSoltTime() {
        return registerSoltTime;
    }

    /**
     * 挂哪个时间段
     */
    public void setRegisterSoltTime(String registerSoltTime) {
        this.registerSoltTime = registerSoltTime;
    }

    /**
     * 挂号费用
     */
    public BigDecimal getRegisterPrice() {
        return registerPrice;
    }

    /**
     * 挂号费用
     */
    public void setRegisterPrice(BigDecimal registerPrice) {
        this.registerPrice = registerPrice;
    }

    /**
     * 数据创建时间
     */
    public Date getGmtCreate() {
        return gmtCreate;
    }

    /**
     * 数据创建时间
     */
    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
     * 数据最后修改时间
     */
    public Date getGmtModified() {
        return gmtModified;
    }

    /**
     * 数据最后修改时间
     */
    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Registration other = (Registration) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPatientId() == null ? other.getPatientId() == null : this.getPatientId().equals(other.getPatientId()))
            && (this.getDepartmentId() == null ? other.getDepartmentId() == null : this.getDepartmentId().equals(other.getDepartmentId()))
            && (this.getDoctorId() == null ? other.getDoctorId() == null : this.getDoctorId().equals(other.getDoctorId()))
            && (this.getNumberCategory() == null ? other.getNumberCategory() == null : this.getNumberCategory().equals(other.getNumberCategory()))
            && (this.getRegisterDate() == null ? other.getRegisterDate() == null : this.getRegisterDate().equals(other.getRegisterDate()))
            && (this.getRegisterSoltTime() == null ? other.getRegisterSoltTime() == null : this.getRegisterSoltTime().equals(other.getRegisterSoltTime()))
            && (this.getRegisterPrice() == null ? other.getRegisterPrice() == null : this.getRegisterPrice().equals(other.getRegisterPrice()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPatientId() == null) ? 0 : getPatientId().hashCode());
        result = prime * result + ((getDepartmentId() == null) ? 0 : getDepartmentId().hashCode());
        result = prime * result + ((getDoctorId() == null) ? 0 : getDoctorId().hashCode());
        result = prime * result + ((getNumberCategory() == null) ? 0 : getNumberCategory().hashCode());
        result = prime * result + ((getRegisterDate() == null) ? 0 : getRegisterDate().hashCode());
        result = prime * result + ((getRegisterSoltTime() == null) ? 0 : getRegisterSoltTime().hashCode());
        result = prime * result + ((getRegisterPrice() == null) ? 0 : getRegisterPrice().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", patientId=").append(patientId);
        sb.append(", departmentId=").append(departmentId);
        sb.append(", doctorId=").append(doctorId);
        sb.append(", numberCategory=").append(numberCategory);
        sb.append(", registerDate=").append(registerDate);
        sb.append(", registerSoltTime=").append(registerSoltTime);
        sb.append(", registerPrice=").append(registerPrice);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}